package app.bigdata;

public class StarData{
	
	private String order;
	private float longitude;
	private float latitude;
	private float magnitude;
	private double brightness;
	private String starName;
	
	public StarData(String order, String starName, 
			float longitude, float latitude, float magnitude){
		this.starName = starName;
		this.order = order;
		this.longitude = longitude;
		this.latitude = latitude;
		this.magnitude = magnitude;
	}
	
	public String getStarName(){
		return starName;
	}
	
	public String getOrder(){
		return order;
	}
	
	public void setLongitude(float longi){
		longitude = longi;
	}
	
	public void setLatitude(float lati){
		latitude = lati;
	}
	
	public float getLongitude(){
		return longitude;
	}
	
	public float getLatitude(){
		return latitude;
	}
	
	public float getMagnitude(){
		return magnitude;
	}
	
	public double getBrightness(){
		brightness = Math.pow(2.152 , 8 - (double)magnitude);
		return brightness;
	}
	
}
